package com.niiwoo.activity.stage.enums.prize;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description
 * @Author zq
 * @Date 2017/12/2
 */
@Getter
@AllArgsConstructor
public enum SendPrizeStatusEnum {

    NOT_SEND((byte)0,"未发送"),
    SEND((byte)1,"已发送"),
    SEND_FAILED((byte)2,"发送失败"),
    SEND_SUCCESS((byte)3,"发送成功");

    private Byte value;
    private String desc;

    public static SendPrizeStatusEnum getStatusEnum(Byte value) {
        for (SendPrizeStatusEnum statusEnum : values()) {
            if (statusEnum.getValue().equals(value)) {
                return statusEnum;
            }
        }
        return null;
    }
}
